<?php
include "sql.php";
$xuehao=$_COOKIE['xuehao'];
$name=$_POST['name'];
$tel=$_POST['tel'];
$lou=$_POST['lou'];
$sushe=$_POST['sushe'];
$cha=$con->query("update user set name='{$name}',tel='{$tel}',lou='{$lou}',sushe='{$sushe}' where xuehao='{$xuehao}'");
if($cha){
    echo "<script>alert('信息保存成功'); window.location.href='kuaidi.php';</script>";
}
?>